﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.DAO;
using COM.DTO;
using log4net.Repository.Hierarchy;
using COM;

namespace BUS
{
    public class HotelHandler
    {
        public static bool CreateNewUser(COM.DTO.Hotel Hotel)
        {
            try
            {
                Hotel.HotelId = Common.IDGenerator(CONST.PREFIX.HOTEL);
                HotelDAO.Add(Hotel);
                return true;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                return false;
            }

        }
        
    }
}
